﻿
<%@ Page Title="" Language="C#" MasterPageFile="~/Asset/EassetMaster.master" AutoEventWireup="true"
    CodeBehind="AssetsDisposalForm.aspx.cs" Inherits="Eassets.UI.Asset.AssetsDisposalForm" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadPlaceHolder" runat="server">

</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="formtitle">
        <asp:Label ID="labelFormTitle" runat="server" Text="Fixed Asset Disposal"></asp:Label>
    </div>
    <fieldset>
        <ul class="form">
            <li>
                <div class="formfield">
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="labelOrganizationLevelList" runat="server" Text="Organization Level List"
                                    CssClass="legendlabel_size1"></asp:Label>
                                <asp:DropDownList ID="dropDownListOrganizationLevelList" runat="server" CssClass="select"
                                    AutoPostBack="true" OnSelectedIndexChanged="OrganizationLevelList_SelectedIndexChange">
                                    <asp:ListItem Value="1" Text="-Select-"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td>
                           
                            </td>
                             <td></td>
                              <td></td>
                            <td align="right">
                                <asp:Label ID="labelTransactionNo" runat="server" Text="Transaction No" CssClass="legendlabel_size1"></asp:Label>
                                
                                 <asp:DropDownList ID="dropDownListTransactionNo" runat="server" CssClass="select"
                                    AutoPostBack="true" >
                                    <asp:ListItem Value="1" Text="-Select-"></asp:ListItem>
                                </asp:DropDownList>
                              <%--  <asp:TextBox ID="textBoxTransactionNo" runat="server" CssClass="disable_textbox1"
                                    Width="150px" MaxLength="8"></asp:TextBox>
                                <asp:Button ID="ButtonTransactionNo" runat="server" Text="..." CssClass="button_browse" />--%>
                            </td>
                        </tr>
                    </table>
                </div>
            </li>
        </ul>
    </fieldset>
    <br />
    <fieldset>
        <ul class="form">
            <li>
                <div class="formfield">
                    <asp:Label ID="labelMainCategory" runat="server" Text="Main Category" CssClass="legendlabel_size1"></asp:Label>
                    <asp:DropDownList ID="dropDownListMainCategory" runat="server" CssClass="select"
                        AutoPostBack="true" OnSelectedIndexChanged="dropDownListMainCategory_SelectedIndexChanged">
                        <asp:ListItem Value="1" Text="-Select-"></asp:ListItem>
                    </asp:DropDownList>
                </div>
            </li>
        </ul>
        <ul class="form">
            <li>
                <div class="formfield">
                    <asp:Label ID="labelSubCategory" runat="server" Text="Sub Category" CssClass="legendlabel_size1"></asp:Label>
                    <asp:DropDownList ID="dropDownListlabelSubCategory" runat="server" CssClass="select"
                        AutoPostBack="true" OnSelectedIndexChanged="dropDownListSubCategory_SelectedIndexChanged">
                        <asp:ListItem Value="1" Text="-Select-"></asp:ListItem>
                    </asp:DropDownList>
                </div>
            </li>
        </ul>
        <ul class="form">
            <li>
                <div class="formfield">
                    <asp:Label ID="labelAsset" runat="server" Text="Asset" CssClass="legendlabel_size1"></asp:Label>
                    <asp:DropDownList ID="dropDownListAsset" runat="server" CssClass="select" AutoPostBack="true"
                        OnSelectedIndexChanged="dropDownListAsset_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:ListItem Value="1" Text="-Select-">
                    </asp:ListItem>
                </div>
            </li>
        </ul>
    </fieldset>
    <br />
    <fieldset>
        <ul class="form">
            <li>
                <div>
                    <asp:GridView ID="gridViewAssetDetails" runat="server" Caption="Asset Details" CssClass="ColStyle"
                        EmptyDataText="No data to display" AllowPaging="True" PageSize="10" AutoGenerateColumns="false"
                        Width="100%" OnPageIndexChanging="gridViewAssetDetails_PageIndexChanging" onselectedindexchanged="gridViewAssetDetails_SelectedIndexChange">
                        <RowStyle CssClass="RowStyle" />
                        <AlternatingRowStyle CssClass="AltRowStyle" />
                        <HeaderStyle CssClass="GridHeader" />
                        <SelectedRowStyle CssClass="SelectedRowStyle" />
                        <Columns>
                           
                            <asp:CommandField ItemStyle-Width="20" ShowSelectButton="True" ButtonType="Image"
                                SelectImageUrl="~/styles/images/Select_icon_button.gif" />
                            <asp:BoundField HeaderText="" DataField="ItemDetailsId" ItemStyle-Width="40" />
                            <asp:BoundField HeaderText="" DataField="AssetId" ItemStyle-Width="120" ItemStyle-HorizontalAlign="Right" />
                            <asp:BoundField HeaderText="AssetSerialCode" DataField="AssetSerialCode" ItemStyle-Width="40" />
                            <asp:BoundField HeaderText="PurchasedDate" DataField="PurchasedDate" ItemStyle-Width="40" DataFormatString="{0:d}" />
                            <asp:BoundField HeaderText="PurchasedValue" DataField="PurchasedValue" ItemStyle-Width="120"
                                ItemStyle-HorizontalAlign="Right" />
                            <asp:BoundField HeaderText="CurrentBookValue" DataField="CurrentBookValue" ItemStyle-Width="140"
                                ItemStyle-HorizontalAlign="Right" />
                            <asp:BoundField HeaderText="RemainingLifeTime" DataField="RemainingLifeTime" ItemStyle-Width="140" />
                        </Columns>
                    </asp:GridView>
                </div>
            </li>
        </ul>
    </fieldset>
    <br />
    <fieldset>
        <ul class="form">
            <li>
                <div class="formfield">
                    <asp:Label ID="labelSuggestedValue" runat="server" Text="Suggested Value" CssClass="legendlabel_size1"></asp:Label>
                    <asp:TextBox ID="textBoxSuggestedValue" runat="server" CssClass="textbox_customsize"
                        Width="100px" MaxLength="8"></asp:TextBox>
                </div>
            </li>
        </ul>
        <ul class="form">
            <li>
                <div class="formfield">
                    <asp:Label ID="labelDisposalDate" runat="server" Text="Disposal Date" CssClass="legendlabel_size1"></asp:Label>
                    <asp:TextBox ID="textBoxDisposalDate" runat="server" CssClass="textbox_customsize"
                        Width="100px" MaxLength="8"></asp:TextBox>
                        <asp:Label ID="labelPurchasedDateStar" runat="server" Text="*" CssClass="mandatoryfield"></asp:Label>
                    <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="textBoxDisposalDate">
                    </asp:CalendarExtender>
                </div>
            </li>
        </ul>
        <ul class="form">
            <li>
                <div class="formfield">
                    <asp:Label ID="labelReason" runat="server" Text="Reason" CssClass="legendlabel_size1"></asp:Label>
                    <asp:TextBox ID="textBoxReason" runat="server" CssClass="textbox_customsize" Width="200"
                       ></asp:TextBox>
                </div>
            </li>
        </ul>
    </fieldset>
    <br />
    <fieldset>
        <ul class="form">
            <li>
                <div class="formfield">
                    <table>
                        <tr>
                            <td style="width: 90%">
                            </td>
                            <td>
                                <asp:Button ID="buttonSave" runat="server" Text="Save" CssClass="button_normal" OnClick="buttonSave_OnClick" />
                            </td>
                            <td>
                                <asp:Button ID="buttonConfirm" runat="server" Text="Confirm" CssClass="button_normal" />
                            </td>
                        </tr>
                    </table>
                </div>
            </li>
        </ul>
    </fieldset>
    </ul>
</asp:Content>
